import ajax from './public'

export function calculateOrder(params) { //订单结算接口
	return ajax.fetchPost('/order/calculateOrder', params)
}

export function confirmOrder(params) { //确认订单接口
	return ajax.fetchPost('/order/confirmOrder', params)
}

export function getOrderList(params) { //订单列表接口
	return ajax.fetchGet('/order/getOrderList', params)
}

export function getOrderDetails(params) { //订单详情接口
	return ajax.fetchPost('/order/getOrderDetails', params)
}

export function cancelOrder(params) { //取消订单接口
	return ajax.fetchPost('/order/cancelOrder', params)
}

export function confirmReceiptGoods(params) { //确认收货接口
	return ajax.fetchPost('/order/confirmReceiptGoods', params)
}

export function delOrder(params) { //删除订单接口
	return ajax.fetchPost('/order/delOrder', params)
}

export function payOrder(params) { //订单支付接口
	return ajax.fetchPost('/order/payOrder', params)
}

export function getExpressInfo(params) { //查询物流信息
	return ajax.fetchGet('/order/getExpressInfo', params)
}